//
//  TaobaoWebViewController.m
//  SugarPile
//
//  Created by Charlie. on 16/1/21.
//  Copyright © 2016年 www.lanou39.蓝鸥科技. All rights reserved.
//

#import "TaobaoWebViewController.h"

@interface TaobaoWebViewController ()

@end

@implementation TaobaoWebViewController
-(void)dealloc
{
    [_urlModel release];
    [super dealloc];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.

    
    UIWebView * store = [[UIWebView alloc] initWithFrame:self.view.bounds];
    self.navigationController.navigationBar.tintColor = [UIColor redColor                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ];
    store.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:store];
    
       NSString *url = @"http://203.80.144.212/napi/topic/detail/?include_fields=share_links&platform_version=4.4.4&device_platform=HM%2B2A&__dtac=%257B%257D&screen_width=720&screen_height=1280&__domain=www.duitang.com&app_version=69&platform_name=Android&locale=zh&app_code=nayutas&topic_id=219998";
    
    [LCAFNetWorking GETWithURL:[url stringByReplacingOccurrencesOfString:@"219998" withString:_ID.stringValue]
 completion:^(id result) {
        NSString *dic = result[@"data"][@"article_content"];
        [store loadHTMLString:dic baseURL:nil];
    }];
    
    
    [store release];

}
-(void)left
{
    [self.navigationController popToRootViewControllerAnimated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
